package com.herench.bunch.emr.agent.impl;

import com.herench.bunch.emr.agent.EmrAgent;
import com.herench.bunch.emr.dao.IEmrDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author luoxiaoming on 18-10-16 上午9:59
 * @email luoxiaoming@herench.com
 */


@Component
public class EmrAgentImpl implements EmrAgent {

    @Autowired
    private IEmrDao iEmrDao;

    @Override
    public Map<String, Object> queryPatientBaseInfo(Map<String, Object> params) {
        Map<String, Object> resList = iEmrDao.getPatientBaseInfo(params);
        return resList;
    }

    @Override
    public List<Map<String, Object>> queryOrders(Map<String, Object> params) {
        List<Map<String, Object>> resList = iEmrDao.getOrders(params);
        return resList;
    }

    @Override
    public List<Map<String, Object>> queryLisItems(Map<String, Object> params) {
        List<Map<String, Object>> resList = iEmrDao.getLisItems(params);
        return resList;
    }

    @Override
    public List<Map<String, Object>> queryLisReportItems(Map<String, Object> params) {
        List<Map<String, Object>> resList = iEmrDao.getLisReportItems(params);
        return resList;
    }

    @Override
    public List<Map<String, Object>> queryLisReportMicroValues(Map<String, Object> params) {
        List<Map<String, Object>> resList = iEmrDao.getLisReportMicroValues(params);
        return resList;
    }

    @Override
    public List<Map<String, Object>> queryPacsItems(Map<String, Object> params) {
        List<Map<String, Object>> resList = iEmrDao.getPacsItems(params);
        return resList;
    }

    @Override
    public List<Map<String, Object>> queryPacsReportItems(Map<String, Object> params) {
        List<Map<String, Object>> resList = iEmrDao.getPacsReportItems(params);
        return resList;
    }

    @Override
    public List<Map<String, Object>> queryVitalSigns(Map<String, Object> params) {
        List<Map<String, Object>> resList = iEmrDao.getVitalSigns(params);
        return resList;
    }

    @Override
    public List<Map<String, Object>> queryStatusChangeset(Map<String, Object> params) {
        List<Map<String, Object>> resList = iEmrDao.getStatusChangeset(params);
        return resList;
    }

    @Override
    public List<Map<String, Object>> queryPrescription(Map<String, Object> params) {
        List<Map<String, Object>> resList = iEmrDao.getPrescription(params);
        return resList;
    }

    @Override
    public List<Map<String, Object>> queryDiagnosis(Map<String, Object> params) {
        List<Map<String, Object>> resList = iEmrDao.getDiagnosis(params);
        return resList;
    }

    /**
     * 查询用户字典
     *
     * @return
     */
    @Override
    public List<Map<String, Object>> queryUserDict() {
        List<Map<String, Object>> resList = iEmrDao.getUserDict();
        return resList;
    }

    /**
     * 查询科室字典
     *
     * @return
     */
    @Override
    public List<Map<String, Object>> queryDeptDict() {
        List<Map<String, Object>> resList = iEmrDao.getDeptDict();
        return resList;
    }

    /**
     * 查询床位字典
     *
     * @return
     */
    @Override
    public List<Map<String, Object>> queryBedDict() {
        List<Map<String, Object>> resList = iEmrDao.getBedDict();
        return resList;
    }

    /**
     * 查询医嘱类别字典
     *
     * @return
     */
    @Override
    public List<Map<String, Object>> queryOrderTypeDict() {
        List<Map<String, Object>> resList = iEmrDao.getOrderTypeDict();
        return resList;
    }

    /**
     * 查询医嘱编码字典
     *
     * @return
     */
    @Override
    public List<Map<String, Object>> queryOrderDict() {
        List<Map<String, Object>> resList = iEmrDao.getOrderDict();
        return resList;
    }

    /**
     * 查询数据字典
     *
     * @return
     */
    @Override
    public List<Map<String, Object>> queryDictDict() {
        List<Map<String, Object>> resList = iEmrDao.getDictDict();
        return resList;
    }

    /**
     * 查询诊断字典
     *
     * @return
     */
    @Override
    public List<Map<String, Object>> queryDiagnosisDict() {
        List<Map<String, Object>> resList = iEmrDao.getDiagnosisDict();
        return resList;
    }

    /**
     * 查询手术编码字典
     *
     * @return
     */
    @Override
    public List<Map<String, Object>> queryOperationDict() {
        List<Map<String, Object>> resList = iEmrDao.getOperationDict();
        return resList;
    }

    /**
     * 查询检验编码字典
     *
     * @return
     */
    @Override
    public List<Map<String, Object>> queryLisItemDict() {
        List<Map<String, Object>> resList = iEmrDao.getLisItemDict();
        return resList;
    }

    /**
     * 查询检查编码字典
     *
     * @return
     */
    @Override
    public List<Map<String, Object>> queryPacsItemDict() {
        List<Map<String, Object>> resList = iEmrDao.getPacsItemDict();
        return resList;
    }

    /**
     * 查询病案首页费用
     * @param params
     * @return
     */
    @Override
    public List<Map<String, Object>> QueryMedicalFree(Map<String, Object> params) {
        List<Map<String,Object>> resList = iEmrDao.getMedicalFree(params);
        return resList;
    }
}
